package cn.hsw.component.auth.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * jwt token
 * @author 李子木
 */
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token){
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public String getCredentials() {
        return token;
    }
}
